﻿using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.Business.Entitys;

/// <summary>
/// 报工明细实体.
/// </summary>
[SugarTable("qms_busi_workreport","报工明细")]
[Tenant(ClaimConst.TENANTID)]
public class QmsBusiWorkreportEntity: CLDEntityBase
{

    /// <summary>
    /// 工单ID.
    /// </summary>
    [SugarColumn(ColumnName = "F_WorkOrderId",ColumnDescription = "工单ID")]
    public string WorkOrderId { get; set; }

    /// <summary>
    /// 作业人员ID.
    /// </summary>
    [SugarColumn(ColumnName = "F_OperatorId",ColumnDescription = "作业人员ID")]
    public string OperatorId { get; set; }

    /// <summary>
    /// 报工数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_Qty",ColumnDescription = "报工数量")]
    public int? Qty { get; set; }

    /// <summary>
    /// 不合格数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_NgQty",ColumnDescription = "不合格数量")]
    public int? NgQty { get; set; }

    /// <summary>
    /// 实际开始时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_ActualStartTime",ColumnDescription = "实际开始时间")]
    public DateTime? ActualStartTime { get; set; }

    /// <summary>
    /// 实际完成时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_ActualEndTime",ColumnDescription = "实际完成时间")]
    public DateTime? ActualEndTime { get; set; }

    /// <summary>
    /// 工时，单位分钟.
    /// </summary>
    [SugarColumn(ColumnName = "F_WorkHours",ColumnDescription = "工时，单位分钟")]
    public int? WorkHours { get; set; }

    /// <summary>
    /// 状态：OK=合格 NG=不合格.
    /// </summary>
    [SugarColumn(ColumnName = "F_Status",ColumnDescription = "状态：OK=合格 NG=不合格")]
    public string Status { get; set; }

    /// <summary>
    /// 备注.
    /// </summary>
    [SugarColumn(ColumnName = "F_Remark",ColumnDescription = "备注")]
    public string Remark { get; set; }

}